package model;

public class Clothing extends Product {
    private String size;

    public Clothing(String pid, String name, double price, String size) {
        super(pid, name, price);
        this.size = size;
    }

    public String getSize() { return size; }

    @Override
    public String getDescription() {
        return getBasicInfo() + ", 类别:服装, 尺码:" + size;
    }

    public void tryOn() {
        System.out.println("【" + getName() + "】试穿尺码：" + size);
    }
}